/**
 * Created by USER on 2017/3/20.
 */
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
    entry:{
        app: './entry.js',
        vender:'./vender.js'
    },
    output: {
        path: __dirname+'/dist666',
        //hotUpdateChunkFilename:'[id][hash].js'
        filename: '[id][hash].js'
    },
    module: {
        rules: [{
            test: /\.css$/,
            use:[
                'style-loader',
                'css-loader'
            ]
            /*{test: /\.css$/, loader: 'style-loader!css-loader'}*/
        }]
    },
    plugins: [
        new webpack.optimize.UglifyJsPlugin(),
        new HtmlWebpackPlugin(/*{template: './dist/index.html'}*/)
    ]
}